From: Georges Basile Stavracas Neto Date: Sat, 4 Feb 2023 23:34:11 +0000 (-0300) Subject: status/network: Title mobile connections as "Mobile" X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~85 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2d4521be3bbabc59f9b6fc504492f2adf5dedf1e;p=gnome-shell.git status/network: Title mobile connections as "Mobile" As per the latest mockups, modem network connections are labeled "Mobile". Override _getDefaultName in NMModemToggle and always return "Mobile" as title. Part-of: --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 776f1ad8e..28e3d70a2 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1860,6 +1860,11 @@ class NMModemToggle extends NMDeviceToggle { 'gnome-network-panel.desktop'); } + _getDefaultName() { + // Translators: "Mobile" from "Mobile Broadband" + return _('Mobile'); + } + _createDeviceMenuItem(device) { return new NMModemDeviceItem(this._client, device); }